package com.punai.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.customer.mapper.CusLinkSubpkCategoryMapper;
import com.punai.customer.domain.CusLinkSubpkCategory;
import com.punai.customer.service.ICusLinkSubpkCategoryService;

/**
 * 工序费用项关联类别Service业务层处理
 *
 * @author zxw
 * @date 2022-12-04
 */
@Service
public class CusLinkSubpkCategoryServiceImpl extends ServiceImpl<CusLinkSubpkCategoryMapper,CusLinkSubpkCategory> implements ICusLinkSubpkCategoryService
{
    @Autowired
    private CusLinkSubpkCategoryMapper cusLinkSubpkCategoryMapper;

    /**
     * 查询工序费用项关联类别
     *
     * @param id 工序费用项关联类别主键
     * @return 工序费用项关联类别
     */
    @Override
    public CusLinkSubpkCategory selectCusLinkSubpkCategoryById(String id)
    {
        return cusLinkSubpkCategoryMapper.selectCusLinkSubpkCategoryById(id);
    }

    /**
     * 查询工序费用项关联类别列表
     *
     * @param cusLinkSubpkCategory 工序费用项关联类别
     * @return 工序费用项关联类别
     */
    @Override
    public List<CusLinkSubpkCategory> selectCusLinkSubpkCategoryList(CusLinkSubpkCategory cusLinkSubpkCategory)
    {
        return cusLinkSubpkCategoryMapper.selectCusLinkSubpkCategoryList(cusLinkSubpkCategory);
    }

    /**
     * 新增工序费用项关联类别
     *
     * @param cusLinkSubpkCategory 工序费用项关联类别
     * @return 结果
     */
    @Override
    public int insertCusLinkSubpkCategory(CusLinkSubpkCategory cusLinkSubpkCategory)
    {
            return cusLinkSubpkCategoryMapper.insert(cusLinkSubpkCategory);
    }

    /**
     * 修改工序费用项关联类别
     *
     * @param cusLinkSubpkCategory 工序费用项关联类别
     * @return 结果
     */
    @Override
    public int updateCusLinkSubpkCategory(CusLinkSubpkCategory cusLinkSubpkCategory)
    {
        return cusLinkSubpkCategoryMapper.updateById(cusLinkSubpkCategory);
    }

    /**
     * 批量删除工序费用项关联类别
     *
     * @param ids 需要删除的工序费用项关联类别主键
     * @return 结果
     */
    @Override
    public int deleteCusLinkSubpkCategoryByIds(String[] ids)
    {
        return cusLinkSubpkCategoryMapper.deleteCusLinkSubpkCategoryByIds(ids);
    }

    /**
     * 删除工序费用项关联类别信息
     *
     * @param id 工序费用项关联类别主键
     * @return 结果
     */
    @Override
    public int deleteCusLinkSubpkCategoryById(String id)
    {
        return cusLinkSubpkCategoryMapper.deleteCusLinkSubpkCategoryById(id);
    }
}
